package model;

import java.io.FileNotFoundException;
import java.io.IOException;

public class StudentsData extends GenericDataHolder<Student> {

	public StudentsData() throws NumberFormatException, IOException {
	}

	public void save() throws FileNotFoundException {
		this.getPersistenceManager().save(this.getItems());
	}

	@Override
	public Student[] loadItems() throws NumberFormatException, IOException {
		return this.getPersistenceManager().loadStudents();
	}

	@Override
	public Student[] createArray(int size) {
		return new Student[size];
	}

}
